3.2.61 \(\int (a+b \sin (c+d x))^3 \tan (c+d x) \, dx\) [161]

Optimal. Leaf size=105 \[ -\frac {(a+b)^3 \log (1-\sin (c+d x))}{2 d}-\frac {(a-b)^3 \log (1+\sin (c+d x))}{2 d}-\frac {b \left (3 a^2+b^2\right ) \sin (c+d x)}{d}-\frac {3 a b^2 \sin ^2(c+d x)}{2 d}-\frac {b^3 \sin ^3(c+d x)}{3 d} \]

[Out]

-1/2*(a+b)^3*ln(1-sin(d*x+c))/d-1/2*(a-b)^3*ln(1+sin(d*x+c))/d-b*(3*a^2+b^2)*sin(d*x+c)/d-3/2*a*b^2*sin(d*x+c)
^2/d-1/3*b^3*sin(d*x+c)^3/d

________________________________________________________________________________________

Rubi [A]
time = 0.08, antiderivative size = 105, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 4, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.210, Rules used = {2800, 815, 647, 31} \begin {gather*} -\frac {b \left (3 a^2+b^2\right ) \sin (c+d x)}{d}-\frac {3 a b^2 \sin ^2(c+d x)}{2 d}-\frac {(a-b)^3 \log (\sin (c+d x)+1)}{2 d}-\frac {(a+b)^3 \log (1-\sin (c+d x))}{2 d}-\frac {b^3 \sin ^3(c+d x)}{3 d} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Sin[c + d*x])^3*Tan[c + d*x],x]

[Out]

-1/2*((a + b)^3*Log[1 - Sin[c + d*x]])/d - ((a - b)^3*Log[1 + Sin[c + d*x]])/(2*d) - (b*(3*a^2 + b^2)*Sin[c +
d*x])/d - (3*a*b^2*Sin[c + d*x]^2)/(2*d) - (b^3*Sin[c + d*x]^3)/(3*d)

Rule 31

Int[((a_) + (b_.)*(x_))^(-1), x_Symbol] :> Simp[Log[RemoveContent[a + b*x, x]]/b, x] /; FreeQ[{a, b}, x]

Rule 647

Int[((d_) + (e_.)*(x_))/((a_) + (c_.)*(x_)^2), x_Symbol] :> With[{q = Rt[(-a)*c, 2]}, Dist[e/2 + c*(d/(2*q)),
Int[1/(-q + c*x), x], x] + Dist[e/2 - c*(d/(2*q)), Int[1/(q + c*x), x], x]] /; FreeQ[{a, c, d, e}, x] && NiceS
qrtQ[(-a)*c]

Rule 815

Int[(((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_)))/((a_) + (c_.)*(x_)^2), x_Symbol] :> Int[ExpandIntegrand[(
d + e*x)^m*((f + g*x)/(a + c*x^2)), x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[c*d^2 + a*e^2, 0] && Integer
Q[m]

Rule 2800

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*tan[(e_.) + (f_.)*(x_)]^(p_.), x_Symbol] :> Dist[1/f, Subst[I
nt[(x^p*(a + x)^m)/(b^2 - x^2)^((p + 1)/2), x], x, b*Sin[e + f*x]], x] /; FreeQ[{a, b, e, f, m}, x] && NeQ[a^2
 - b^2, 0] && IntegerQ[(p + 1)/2]

Rubi steps

\begin {align*} \int (a+b \sin (c+d x))^3 \tan (c+d x) \, dx &=\frac {\text {Subst}\left (\int \frac {x (a+x)^3}{b^2-x^2} \, dx,x,b \sin (c+d x)\right )}{d}\\ &=\frac {\text {Subst}\left (\int \left (-3 a^2-b^2-3 a x-x^2+\frac {3 a^2 b^2+b^4+a \left (a^2+3 b^2\right ) x}{b^2-x^2}\right ) \, dx,x,b \sin (c+d x)\right )}{d}\\ &=-\frac {b \left (3 a^2+b^2\right ) \sin (c+d x)}{d}-\frac {3 a b^2 \sin ^2(c+d x)}{2 d}-\frac {b^3 \sin ^3(c+d x)}{3 d}+\frac {\text {Subst}\left (\int \frac {3 a^2 b^2+b^4+a \left (a^2+3 b^2\right ) x}{b^2-x^2} \, dx,x,b \sin (c+d x)\right )}{d}\\ &=-\frac {b \left (3 a^2+b^2\right ) \sin (c+d x)}{d}-\frac {3 a b^2 \sin ^2(c+d x)}{2 d}-\frac {b^3 \sin ^3(c+d x)}{3 d}+\frac {(a-b)^3 \text {Subst}\left (\int \frac {1}{-b-x} \, dx,x,b \sin (c+d x)\right )}{2 d}+\frac {(a+b)^3 \text {Subst}\left (\int \frac {1}{b-x} \, dx,x,b \sin (c+d x)\right )}{2 d}\\ &=-\frac {(a+b)^3 \log (1-\sin (c+d x))}{2 d}-\frac {(a-b)^3 \log (1+\sin (c+d x))}{2 d}-\frac {b \left (3 a^2+b^2\right ) \sin (c+d x)}{d}-\frac {3 a b^2 \sin ^2(c+d x)}{2 d}-\frac {b^3 \sin ^3(c+d x)}{3 d}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.13, size = 90, normalized size = 0.86 \begin {gather*} -\frac {3 \left ((a+b)^3 \log (1-\sin (c+d x))+(a-b)^3 \log (1+\sin (c+d x))\right )+6 b \left (3 a^2+b^2\right ) \sin (c+d x)+9 a b^2 \sin ^2(c+d x)+2 b^3 \sin ^3(c+d x)}{6 d} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sin[c + d*x])^3*Tan[c + d*x],x]

[Out]

-1/6*(3*((a + b)^3*Log[1 - Sin[c + d*x]] + (a - b)^3*Log[1 + Sin[c + d*x]]) + 6*b*(3*a^2 + b^2)*Sin[c + d*x] +
 9*a*b^2*Sin[c + d*x]^2 + 2*b^3*Sin[c + d*x]^3)/d

________________________________________________________________________________________

Maple [A]
time = 0.19, size = 110, normalized size = 1.05

method result size
derivativedivides \(\frac {-a^{3} \ln \left (\cos \left (d x +c \right )\right )+3 a^{2} b \left (-\sin \left (d x +c \right )+\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )\right )+3 a \,b^{2} \left (-\frac {\left (\sin ^{2}\left (d x +c \right )\right )}{2}-\ln \left (\cos \left (d x +c \right )\right )\right )+b^{3} \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right )}{3}-\sin \left (d x +c \right )+\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )\right )}{d}\) \(110\)
default \(\frac {-a^{3} \ln \left (\cos \left (d x +c \right )\right )+3 a^{2} b \left (-\sin \left (d x +c \right )+\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )\right )+3 a \,b^{2} \left (-\frac {\left (\sin ^{2}\left (d x +c \right )\right )}{2}-\ln \left (\cos \left (d x +c \right )\right )\right )+b^{3} \left (-\frac {\left (\sin ^{3}\left (d x +c \right )\right )}{3}-\sin \left (d x +c \right )+\ln \left (\sec \left (d x +c \right )+\tan \left (d x +c \right )\right )\right )}{d}\) \(110\)
risch \(\frac {3 i b \,{\mathrm e}^{i \left (d x +c \right )} a^{2}}{2 d}+\frac {6 i a \,b^{2} c}{d}+\frac {2 i a^{3} c}{d}+\frac {5 i b^{3} {\mathrm e}^{i \left (d x +c \right )}}{8 d}+3 i a \,b^{2} x -\frac {5 i b^{3} {\mathrm e}^{-i \left (d x +c \right )}}{8 d}-\frac {3 i b \,{\mathrm e}^{-i \left (d x +c \right )} a^{2}}{2 d}+i a^{3} x -\frac {a^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right )}{d}-\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) a^{2} b}{d}-\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) a \,b^{2}}{d}-\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}-i\right ) b^{3}}{d}-\frac {a^{3} \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}{d}+\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) a^{2} b}{d}-\frac {3 \ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) a \,b^{2}}{d}+\frac {\ln \left ({\mathrm e}^{i \left (d x +c \right )}+i\right ) b^{3}}{d}+\frac {b^{3} \sin \left (3 d x +3 c \right )}{12 d}+\frac {3 a \,b^{2} \cos \left (2 d x +2 c \right )}{4 d}\) \(318\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sin(d*x+c))^3*tan(d*x+c),x,method=_RETURNVERBOSE)

[Out]

1/d*(-a^3*ln(cos(d*x+c))+3*a^2*b*(-sin(d*x+c)+ln(sec(d*x+c)+tan(d*x+c)))+3*a*b^2*(-1/2*sin(d*x+c)^2-ln(cos(d*x
+c)))+b^3*(-1/3*sin(d*x+c)^3-sin(d*x+c)+ln(sec(d*x+c)+tan(d*x+c))))

________________________________________________________________________________________

Maxima [A]
time = 0.28, size = 113, normalized size = 1.08 \begin {gather*} -\frac {2 \, b^{3} \sin \left (d x + c\right )^{3} + 9 \, a b^{2} \sin \left (d x + c\right )^{2} + 3 \, {\left (a^{3} - 3 \, a^{2} b + 3 \, a b^{2} - b^{3}\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) + 3 \, {\left (a^{3} + 3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )} \log \left (\sin \left (d x + c\right ) - 1\right ) + 6 \, {\left (3 \, a^{2} b + b^{3}\right )} \sin \left (d x + c\right )}{6 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x+c))^3*tan(d*x+c),x, algorithm="maxima")

[Out]

-1/6*(2*b^3*sin(d*x + c)^3 + 9*a*b^2*sin(d*x + c)^2 + 3*(a^3 - 3*a^2*b + 3*a*b^2 - b^3)*log(sin(d*x + c) + 1)
+ 3*(a^3 + 3*a^2*b + 3*a*b^2 + b^3)*log(sin(d*x + c) - 1) + 6*(3*a^2*b + b^3)*sin(d*x + c))/d

________________________________________________________________________________________

Fricas [A]
time = 0.38, size = 116, normalized size = 1.10 \begin {gather*} \frac {9 \, a b^{2} \cos \left (d x + c\right )^{2} - 3 \, {\left (a^{3} - 3 \, a^{2} b + 3 \, a b^{2} - b^{3}\right )} \log \left (\sin \left (d x + c\right ) + 1\right ) - 3 \, {\left (a^{3} + 3 \, a^{2} b + 3 \, a b^{2} + b^{3}\right )} \log \left (-\sin \left (d x + c\right ) + 1\right ) + 2 \, {\left (b^{3} \cos \left (d x + c\right )^{2} - 9 \, a^{2} b - 4 \, b^{3}\right )} \sin \left (d x + c\right )}{6 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x+c))^3*tan(d*x+c),x, algorithm="fricas")

[Out]

1/6*(9*a*b^2*cos(d*x + c)^2 - 3*(a^3 - 3*a^2*b + 3*a*b^2 - b^3)*log(sin(d*x + c) + 1) - 3*(a^3 + 3*a^2*b + 3*a
*b^2 + b^3)*log(-sin(d*x + c) + 1) + 2*(b^3*cos(d*x + c)^2 - 9*a^2*b - 4*b^3)*sin(d*x + c))/d

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sin {\left (c + d x \right )}\right )^{3} \tan {\left (c + d x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x+c))**3*tan(d*x+c),x)

[Out]

Integral((a + b*sin(c + d*x))**3*tan(c + d*x), x)

________________________________________________________________________________________

Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 55225 vs. \(2 (97) = 194\).
time = 31.93, size = 55225, normalized size = 525.95 \begin {gather*} \text {Too large to display} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sin(d*x+c))^3*tan(d*x+c),x, algorithm="giac")

[Out]

-1/12*(18*a^2*b*log(2*(tan(1/2*d*x)^4*tan(1/2*c)^2 + 2*tan(1/2*d*x)^4*tan(1/2*c) + 2*tan(1/2*d*x)^3*tan(1/2*c)
^2 + tan(1/2*d*x)^4 + 2*tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^3 + 2*tan(1/2*d*x)*tan(1/2*c)^2 + 2*tan(1
/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 2*tan(1/2*c) + 1)/(tan(1/2*c)^2 + 1))*tan(d*x)^2*tan(1/2*d*x)^6*ta
n(1/2*c)^6*tan(c)^2 + 6*b^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 2*tan(d*x)*tan(c) + 1)/(tan(c)^2 + 1))*tan(d*x)^2*tan(1/2*d*x)^6*ta
n(1/2*c)^6*tan(c)^2 + 18*a*b^2*log(4*(tan(d*x)^4*tan(c)^2 - 2*tan(d*x)^3*tan(c) + tan(d*x)^2*tan(c)^2 + tan(d*
x)^2 - 2*tan(d*x)*tan(c) + 1)/(tan(c)^2 + 1))*tan(d*x)^2*tan(1/2*d*x)^6*tan(1/2*c)^6*tan(c)^2 - 9*a*b^2*tan(d*
x)^2*tan(1/2*d*x)^6*tan(1/2*c)^6*tan(c)^2 + 18*a^2*b*log(2*(tan(1/2*d*x)^4*tan(1/2*c)^2 + 2*tan(1/2*d*x)^4*tan
(1/2*c) + 2*tan(1/2*d*x)^3*tan(1/2*c)^2 + tan(1/2*d*x)^4 + 2*tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^3 +
2*tan(1/2*d*x)*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 2*tan(1/2*c) + 1)/(tan(1/2*c)
^2 + 1))*tan(d*x)^2*tan(1/2*d*x)^6*tan(1/2*c)^6 + 6*b^3*log(2*(tan(1/2*d*x)^4*tan(1/2*c)^2 + 2*tan(1/2*d*x)^4*
tan(1/2*c) + 2*tan(1/2*d*x)^3*tan(1/2*c)^2 + tan(1/2*d*x)^4 + 2*tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^3
 + 2*tan(1/2*d*x)*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 2*tan(1/2*c) + 1)/(tan(1/2
*c)^2 + 1))*tan(d*x)^2*tan(1/2*d*x)^6*tan(1/2*c)^6 - 18*a^2*b*log(2*(tan(1/2*d*x)^4*tan(1/2*c)^2 - 2*tan(1/2*d
*x)^4*tan(1/2*c) - 2*tan(1/2*d*x)^3*tan(1/2*c)^2 + tan(1/2*d*x)^4 + 2*tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*
d*x)^3 - 2*tan(1/2*d*x)*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) + 2*tan(1/2*c) + 1)/(t
an(1/2*c)^2 + 1))*tan(d*x)^2*tan(1/2*d*x)^6*tan(1/2*c)^6 - 6*b^3*log(2*(tan(1/2*d*x)^4*tan(1/2*c)^2 - 2*tan(1/
2*d*x)^4*tan(1/2*c) - 2*tan(1/2*d*x)^3*tan(1/2*c)^2 + tan(1/2*d*x)^4 + 2*tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1
/2*d*x)^3 - 2*tan(1/2*d*x)*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) + 2*tan(1/2*c) + 1)
/(tan(1/2*c)^2 + 1))*tan(d*x)^2*tan(1/2*d*x)^6*tan(1/2*c)^6 + 6*a^3*log(4*(tan(d*x)^4*tan(c)^2 - 2*tan(d*x)^3*
tan(c) + tan(d*x)^2*tan(c)^2 + tan(d*x)^2 - 2*tan(d*x)*tan(c) + 1)/(tan(c)^2 + 1))*tan(d*x)^2*tan(1/2*d*x)^6*t
an(1/2*c)^6 + 18*a*b^2*log(4*(tan(d*x)^4*tan(c)^2 - 2*tan(d*x)^3*tan(c) + tan(d*x)^2*tan(c)^2 + tan(d*x)^2 - 2
*tan(d*x)*tan(c) + 1)/(tan(c)^2 + 1))*tan(d*x)^2*tan(1/2*d*x)^6*tan(1/2*c)^6 + 54*a^2*b*log(2*(tan(1/2*d*x)^4*
tan(1/2*c)^2 + 2*tan(1/2*d*x)^4*tan(1/2*c) + 2*tan(1/2*d*x)^3*tan(1/2*c)^2 + tan(1/2*d*x)^4 + 2*tan(1/2*d*x)^2
*tan(1/2*c)^2 - 2*tan(1/2*d*x)^3 + 2*tan(1/2*d*x)*tan(1/2*c)^2 + 2*tan(1/2*d*x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*x)^2*tan(1/2*d*x)^6
*tan(1/2*c)^4*tan(c)^2 + 18*a^3*log(4*(tan(d*x)^4*tan(c)^2 - 2*tan(d*x)^3*tan(c) + tan(d*x)^2*tan(c)^2 + tan(d
*x)^2 - 2*tan(d*x)*tan(c) + 1)/(tan(c)^2 + 1))*...

________________________________________________________________________________________

Mupad [B]
time = 6.75, size = 226, normalized size = 2.15 \begin {gather*} \frac {\ln \left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )\,\left (a^3+3\,a\,b^2\right )}{d}-\frac {\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )\,\left (6\,a^2\,b+2\,b^3\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^5\,\left (6\,a^2\,b+2\,b^3\right )+{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^3\,\left (12\,a^2\,b+\frac {20\,b^3}{3}\right )+6\,a\,b^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+6\,a\,b^2\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4}{d\,\left ({\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^6+3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^4+3\,{\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )}^2+1\right )}-\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )+1\right )\,{\left (a-b\right )}^3}{d}-\frac {\ln \left (\mathrm {tan}\left (\frac {c}{2}+\frac {d\,x}{2}\right )-1\right )\,{\left (a+b\right )}^3}{d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(tan(c + d*x)*(a + b*sin(c + d*x))^3,x)

[Out]

(log(tan(c/2 + (d*x)/2)^2 + 1)*(3*a*b^2 + a^3))/d - (tan(c/2 + (d*x)/2)*(6*a^2*b + 2*b^3) + tan(c/2 + (d*x)/2)
^5*(6*a^2*b + 2*b^3) + tan(c/2 + (d*x)/2)^3*(12*a^2*b + (20*b^3)/3) + 6*a*b^2*tan(c/2 + (d*x)/2)^2 + 6*a*b^2*t
an(c/2 + (d*x)/2)^4)/(d*(3*tan(c/2 + (d*x)/2)^2 + 3*tan(c/2 + (d*x)/2)^4 + tan(c/2 + (d*x)/2)^6 + 1)) - (log(t
an(c/2 + (d*x)/2) + 1)*(a - b)^3)/d - (log(tan(c/2 + (d*x)/2) - 1)*(a + b)^3)/d

________________________________________________________________________________________